//
//  MessageTableViewCell.m
//  DefendHealth
//
//  Created by 吾诺翰卓003 on 17/2/21.
//  Copyright © 2017年 iMacOne. All rights reserved.
//

#import "MessageTableViewCell.h"
#import "Header.h"
@interface MessageTableViewCell ()
{
    UIImageView *touxiang;
    UILabel *name;
    UILabel *num;
}
@end
@implementation MessageTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self == [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        touxiang = [UIImageView new];
        touxiang.frame = CGRectMake(25, 7, 33, 33);
        touxiang.backgroundColor = [UIColor grayColor];
        touxiang.layer.cornerRadius = 16.5;
        touxiang.layer.masksToBounds = YES;
        [self.contentView addSubview:touxiang];
        
        name = [UILabel new];
        name.frame = CGRectMake(kMaxX(touxiang.frame)+14, 0, 118, 47);
        name.text = @"MDK";
        name.font = FONT(13);
        name.textColor = UIColorFromRGB(0x333333);
        name.textAlignment = 0;
        [self.contentView addSubview:name];
        
        UILabel *Numlab1 = [UILabel new];
        Numlab1.frame = CGRectMake(WindowWidth-25-16, 15.5, 16, 16);
        Numlab1.text = @"1";
        Numlab1.font = FONT(9);
        Numlab1.textColor = UIColorFromRGB(0xffffff);
        Numlab1.textAlignment = 1;
        Numlab1.backgroundColor = UIColorFromRGB(0x231815);
        Numlab1.layer.cornerRadius = 8;
        Numlab1.layer.masksToBounds = YES;
        [self.contentView addSubview:Numlab1];
        
        UIView *hui = [UIView new];
        hui.frame = CGRectMake(0, 46.5,WindowWidth , 0.5);
        hui.backgroundColor = kLineColor;
        [self.contentView addSubview:hui];
    }
    return self;
}
@end
